
xui.Class('RAD.resource.FontList', 'xui.Module',{
    Instance:{
        initialize : function(){ },
        Dependencies:[],
        Required:[],
        properties : {
            "autoDestroy":true,
            "dock":"fill"
        },
        events:{},
        ViewMenuBar:{},
        functions:{},
        iniComponents : function(){
            // [[Code created by JDSEasy RAD Studio
            var host=this, children=[], properties={}, append=function(child){children.push(child.get(0));};
            xui.merge(properties, this.properties);

            append(
                xui.create("xui.APICaller")
                    .setHost(host,"api_4")
                    .setName("api_4")
                    .setCurrClassName("RAD.resource.FontList")
                    .setAutoRun(true)
                    .setQueryURL("/admin/plugs/font/getProjectFonts")
                    .setQueryMethod("POST")
                    .setRequestDataSource([
                        {
                            "name":"xui_ui_pagebar6",
                            "path":"",
                            "type":"pagebar"
                        },
                        {
                            "name":"xui_ui_block62",
                            "path":"",
                            "type":"form"
                        }
                    ])
                    .setResponseDataTarget([
                        {
                            "name":"xui_ui_treegrid51",
                            "path":"data",
                            "type":"treegrid"
                        },
                        {
                            "name":"xui_ui_pagebar6",
                            "path":"size",
                            "type":"pagebar"
                        }
                    ])
                    .setResponseCallback([ ])
            );

            append(
                xui.create("xui.APICaller")
                    .setHost(host,"delfontAjax")
                    .setName("delfontAjax")
                    .setCurrClassName("RAD.resource.FontList")
                    .setQueryURL("/admin/plugs/font/delFont")
                    .setQueryMethod("POST")
                    .setRequestDataSource([
                        {
                            "name":"xui_ui_treegrid51",
                            "path":"",
                            "type":"treegrid"
                        },
                        {
                            "name":"xui_ui_block62",
                            "path":"",
                            "type":"form"
                        }
                    ])
                    .setResponseDataTarget([ ])
                    .setResponseCallback([ ])
                    .onData({
                        "actions":[
                            {
                                "args":[
                                    "{page.api_4.invoke()}"
                                ],
                                "conditions":[ ],
                                "desc":"动作 1",
                                "method":"invoke",
                                "redirection":"other:callback:call",
                                "target":"api_4",
                                "type":"control"
                            }
                        ]
                    })
            );

            append(
                xui.create("xui.UI.Block")
                    .setHost(host,"xui_ui_block28")
                    .setDock("fill")
                    .setLeft("0em")
                    .setTop("0em")
            );

            host.xui_ui_block28.append(
                xui.create("xui.UI.Block")
                    .setHost(host,"xui_ui_block62")
                    .setDock("fill")
                    .setLeft("20em")
                    .setTop("20em")
            );

            host.xui_ui_block62.append(
                xui.create("xui.UI.HiddenInput")
                    .setHost(host,"projectName")
                    .setName("projectName")
                    .setValue("projectManagerVVVERSION0")
            );

            host.xui_ui_block62.append(
                xui.create("xui.UI.TreeGrid")
                    .setHost(host,"xui_ui_treegrid51")
                    .setName("personlist")
                    .setLeft("0em")
                    .setTop("0em")
                    .setSelMode("multibycheckbox")
                    .setRowNumbered(true)
                    .setHeader([
                        {
                            "caption":"fontid",
                            "colResizer":true,
                            "editable":false,
                            "flexSize":false,
                            "hidden":true,
                            "id":"id",
                            "type":"label",
                            "width":"8.03030303030303em"
                        },
                        {
                            "caption":"名称",
                            "colResizer":true,
                            "editable":false,
                            "flexSize":false,
                            "hidden":false,
                            "id":"caption",
                            "type":"label",
                            "width":"11.969696969696969em"
                        },
                        {
                            "caption":"前缀",
                            "colResizer":true,
                            "editable":false,
                            "flexSize":false,
                            "hidden":false,
                            "id":"font_family",
                            "type":"label",
                            "width":"11.969696969696969em"
                        },
                        {
                            "caption":"分隔符",
                            "colResizer":true,
                            "editable":false,
                            "flexSize":false,
                            "hidden":false,
                            "id":"css_prefix_text",
                            "type":"label",
                            "width":"8.03030303030303em"
                        },
                        {
                            "caption":"CSS文件",
                            "colResizer":true,
                            "editable":false,
                            "flexSize":false,
                            "hidden":true,
                            "id":"file",
                            "type":"label",
                            "width":"8.03030303030303em"
                        },
                        {
                            "caption":"描述",
                            "colResizer":true,
                            "editable":false,
                            "flexSize":true,
                            "hidden":false,
                            "id":"description",
                            "type":"label",
                            "width":"11.969696969696969em"
                        }
                    ])
                    .setUidColumn("id")
                    .setTagCmds([
                        {
                            "caption":"删除",
                            "hidden":false,
                            "id":"del",
                            "index":0,
                            "itemClass":"fa fa-minus-square",
                            "location":"right",
                            "tag":"row"
                        }
                    ])
                    .setValue("")
                    .onCmd({
                        "actions":[
                            {
                                "args":[
                                    "{page.delfontAjax.invoke()}"
                                ],
                                "conditions":[
                                    {
                                        "symbol":"=",
                                        "right":"del",
                                        "conditionId":"del_equal_{args[2]}",
                                        "left":"{args[2]}"
                                    }
                                ],
                                "desc":"动作 1",
                                "koFlag":"_DI_fail",
                                "method":"invoke",
                                "okFlag":"_DI_succeed",
                                "redirection":"other:callback:call",
                                "return":false,
                                "target":"delfontAjax",
                                "type":"control"
                            }
                        ]
                    })
            );

            host.xui_ui_block62.append(
                xui.create("xui.UI.Block")
                    .setHost(host,"xui_ui_block63")
                    .setDock("bottom")
                    .setLeft("15em")
                    .setTop("45em")
                    .setHeight("2.8333333333333335em")
            );

            host.xui_ui_block63.append(
                xui.create("xui.UI.PageBar")
                    .setHost(host,"xui_ui_pagebar6")
                    .setName("personpagebar")
                    .setLeft("20.833333333333332em")
                    .setTop("0.8333333333333334em")
                    .setCaption("页码自定义")
            );

            host.xui_ui_block62.append(
                xui.create("xui.UI.ToolBar")
                    .setHost(host,"xui_ui_toolbar100")
                    .setName("persontoolbar")
                    .setItems([
                        {
                            "caption":"grp1",
                            "dynDestory":false,
                            "hidden":false,
                            "id":"grp1",
                            "patterned":false,
                            "sub":[
                                {
                                    "caption":"添加",
                                    "dynDestory":false,
                                    "hidden":false,
                                    "id":"add",
                                    "imageClass":"fa fa-plus-square",
                                    "patterned":false,
                                    "position":"absolute",
                                    "iconColor":"#E6945C",
                                    "iconFontSize":""
                                },
                                {
                                    "caption":"删除",
                                    "dynDestory":false,
                                    "hidden":true,
                                    "id":"delete",
                                    "imageClass":"fa fa-remove",
                                    "patterned":false,
                                    "position":"absolute",
                                    "iconColor":"#46C37B",
                                    "iconFontSize":""
                                },
                                {
                                    "caption":"刷新",
                                    "dynDestory":false,
                                    "hidden":false,
                                    "id":"reload",
                                    "imageClass":"fa fa-refresh",
                                    "patterned":false,
                                    "position":"absolute",
                                    "iconColor":"#195ead",
                                    "iconFontSize":""
                                }
                            ]
                        }
                    ])
                    .setLeft("Infinityem")
                    .setTop("3.3333333333333335em")
                    .onClick([
                        {
                            "args":[
                                "{page.show2()}",
                                null,
                                null,
                                null,
                                null,
                                null,
                                "{page.getData()}",
                                "{page}",
                                "{true}"
                            ],
                            "conditions":[
                                {
                                    "symbol":"=",
                                    "right":"add",
                                    "conditionId":"add_equal_{args[1].id}",
                                    "left":"{args[1].id}"
                                }
                            ],
                            "desc":"动作 3",
                            "koFlag":"_DI_fail",
                            "method":"show2",
                            "okFlag":"_DI_succeed",
                            "redirection":"page",
                            "return":false,
                            "target":"RAD.resource.FontTree",
                            "className":"RAD.resource.FontTree",
                            "type":"page"
                        },
                        {
                            "args":[
                                "{page.api_4.invoke()}"
                            ],
                            "conditions":[
                                {
                                    "symbol":"=",
                                    "right":"reload",
                                    "conditionId":"reload_equal_{args[5]}",
                                    "left":"{args[5]}"
                                }
                            ],
                            "desc":"动作 2",
                            "method":"invoke",
                            "redirection":"other:callback:call",
                            "return":false,
                            "target":"api_4",
                            "type":"control"
                        }
                    ])
            );

            return children;
            // ]]Code created by JDSEasy RAD Studio
        },

        customAppend :  function(parent, subId, left, top){ return false}
    } ,
    Static:{
        "designViewConf":{
            "touchDevice":false
        },
        "viewStyles":{

        }
    }

});